chore: pin ESLint to 9.39.3 and refine flat-config migration#806
Open
ivan-lednev wants to merge 1 commit intomainfrom
Open
chore: pin ESLint to 9.39.3 and refine flat-config migration#806ivan-lednev wants to merge 1 commit intomainfrom
ivan-lednev wants to merge 1 commit intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
eslintto the requested9.39.3to avoid accidental upgrades and ensure a known-good runtime for the new flat config.npx eslint srcusable.Description
eslint.config.mjsthat reusesFlatCompatto translate the legacy config and preserve existingextends,parser,settings,overrides, and rules..eslintrcand refined the flat config with these specific adjustments: added'.js', '.cjs', '.mjs'toimport/parsers, set@typescript-eslint/no-explicit-anyand@typescript-eslint/no-unnecessary-type-constrainttooff, and added a Svelte override to disable@typescript-eslint/no-unused-varsandunused-imports/no-unused-importsfor**/*.svelte.package.jsonandpackage-lock.jsondev dependency entries to pineslintto9.39.3and set the ESLint-related plugins/resolvers and@typescript-eslintpackages to"latest"where the migration previously used ranges.Testing
npx eslint srcafter the first migration which produced many TypeScript/Svelte errors, then applied the targeted rule adjustments and re-rannpx eslint src, which now exits successfully with only 3 warnings.vitestor pre-commit pipeline was not re-run in this environment.Codex Task